<template>
  <div class="hot">
    <div class="hot-title">
      <div class="hot-title-content hot-title-left">
        <img src="http://img1.qunarzz.com/piao/fusion/1711/16/bfbb9874e8f11402.png" /> 本周热门榜单
      </div>
      <div class="hot-title-content hot-title-right">
        全部榜单<span class="iconfont iconyoujiantou"></span>
      </div>
    </div>
    <ul class="hot-list">
      <li class="hot-item" v-for="item of hotList" :key="item.id">
        <img :src="item.imgUrl" :alt="item.title">
        <p class="hot-item-title">{{ item.title }}</p>
        <p class="price"><span>￥{{ item.price }}</span>起</p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data () {
    return {
      hotList: [
        {
          id: '01',
          imgUrl: 'http://img1.qunarzz.com/sight/p0/1412/84/f696c67a8052bb60e6fc51b0f9ba7388.water.jpg_250x250_98036577.jpg',
          title: '秦始皇陵博物院（兵马俑）',
          price: 108
        },
        {
          id: '011',
          imgUrl: 'http://img1.qunarzz.com/sight/p0/1412/84/f696c67a8052bb60e6fc51b0f9ba7388.water.jpg_250x250_98036577.jpg',
          title: '陕西历史博物馆',
          price: 108
        },
        {
          id: '02',
          imgUrl: 'http://img1.qunarzz.com/sight/p0/1412/84/f696c67a8052bb60e6fc51b0f9ba7388.water.jpg_250x250_98036577.jpg',
          title: '陕西历史博物馆',
          price: 108
        },
        {
          id: '03',
          imgUrl: 'http://img1.qunarzz.com/sight/p0/1412/84/f696c67a8052bb60e6fc51b0f9ba7388.water.jpg_250x250_98036577.jpg',
          title: '陕西历史博物馆',
          price: 108
        },
        {
          id: '04',
          imgUrl: 'http://img1.qunarzz.com/sight/p0/1412/84/f696c67a8052bb60e6fc51b0f9ba7388.water.jpg_250x250_98036577.jpg',
          title: '陕西历史博物馆',
          price: 108
        },
        {
          id: '05',
          imgUrl: 'http://img1.qunarzz.com/sight/p0/1412/84/f696c67a8052bb60e6fc51b0f9ba7388.water.jpg_250x250_98036577.jpg',
          title: '陕西历史博物馆',
          price: 108
        },
        {
          id: '06',
          imgUrl: 'http://img1.qunarzz.com/sight/p0/1412/84/f696c67a8052bb60e6fc51b0f9ba7388.water.jpg_250x250_98036577.jpg',
          title: '陕西历史博物馆',
          price: 108
        },
        {
          id: '07',
          imgUrl: 'http://img1.qunarzz.com/sight/p0/1412/84/f696c67a8052bb60e6fc51b0f9ba7388.water.jpg_250x250_98036577.jpg',
          title: '陕西历史博物馆',
          price: 108
        },
        {
          id: '08',
          imgUrl: 'http://img1.qunarzz.com/sight/p0/1412/84/f696c67a8052bb60e6fc51b0f9ba7388.water.jpg_250x250_98036577.jpg',
          title: '陕西历史博物馆',
          price: 108
        }
      ]
    }
  }
}
</script>

<style scoped>
  /* @import "~@/assets/css/common.styl" */
  .hot {
    margin-top: .2rem;
    background-color: #fff;
    font-size: .32rem;
    padding: 0 7px;
  }
  .hot-title{
    display: flex;
    padding: 12px 0;
  }
  .hot-title img {
    width: .3rem;
    height: .3rem;
  }
  .hot-title-content {
    flex: 1;
  }
  .hot-title-right {
    font-size: .24rem;
    position: relative;
    left: 2.3rem;
  }
  .hot-title-right span {
    font-size: .2rem;
  }
  .hot-list {
    width: 100%;
    font-size: .24rem;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
  }
  .hot-item {
    width: 2rem;
    text-align: center;
    display: inline-block;
    margin-right: .1rem;
  }
  .hot-item img {
    width: 100%;
    height: 2rem;
  }
  .hot-item-title {
    margin-top: .12rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .price {
    padding: .06rem 0 .2rem;
  }
  .price span {
    color: #ff8300;
    font-size: .28rem;
    font-weight: 500;
  }
</style>
